package com.insurance.service;

import com.insurance.common.ResultData;
import com.insurance.pojo.Information;
import com.insurance.pojo.UserPermissions;

import java.sql.SQLException;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/10/29 21:13
 * Description:
 * Version: V1.0
 */
public interface AuthorityService {
    /**
     * 添加推送消息
     * @param information
     * @return
     */
    ResultData addInform(Information information) throws SQLException;

    /**
     * 查询所有消息
     * @return
     */
    ResultData queryInform();

    /**
     * 删除消息
     * @return
     * @param information
     */
    ResultData delInform(Information information);

    /**
     * 查询所有管理员用户
     * @return
     */
    ResultData queryAuthorityList();

    /**
     * 添加管理员
     * @param userPermission
     * @return
     */
    ResultData addAuthority(UserPermissions userPermission);

    /**
     * 修改管理员信息
     * @param userPermission
     * @return
     */
    ResultData editAuthority(UserPermissions userPermission);

    /**
     *
     * @param userId
     * @param userStatu
     * @return
     */
    ResultData editAuthorityStatu(Integer userId, Integer userStatu);

    /**
     * 删除管理员
     * @param userId
     * @return
     */
    ResultData deleteAuthority(Integer userId);

    /**
     * 查询已开通城市
     * @return
     */
    ResultData queryCityAll();

    /***
     * 统计已开通城市
     * @return
     */
    ResultData queryCityAllCount();

    ResultData queryPerAll();

    /**
     * 查询未开通市
     * @param province_id
     * @return
     */
    ResultData queryByCityStrtu(int province_id);

    /**
     * 添加开通城市
     * @param cityId
     * @return
     */
    ResultData addCity(int cityId);
    /**
     * 取消开通城市
     */
    ResultData deleteCity(int cityId);
}
